import request from '@/utils/request'

// 查询userb列表
export function listUserb(query) {
  return request({
    url: '/ruoyi-manage/user/pageshow',
    method: 'get',
    params: query
  })
}

// 查询userb详细
export function getUserb(userId) {
  return request({
    url: '/ruoyi-manage/user/' + userId,
    method: 'get'
  })
}

// 新增userb
export function addUserb(data) {
  return request({
    url: '/ruoyi-manage/user',
    method: 'post',
    data: data
  })
}

// 修改userb
export function updateUserb(data) {
  return request({
    url: '/ruoyi-manage/user/update',
    method: 'put',
    data: data
  })
}

// 删除userb
export function delUserb(userId) {
  return request({
    url: '/ruoyi-manage/user/' + userId,
    method: 'delete'
  })
}

export function routerSelect(row){
  return request({
    url: '/ruoyi-manage/user/routerSelect',
    method: 'post',
    data: row
  })
}
